package chapterSystem.client.model.entities;

import chapterSystem.client.model.entitiesInt.Report;

import java.util.Date;

/**
 * User: Hasp
 * Date: 27.03.12
 * Time: 17:59
 */
public class ReportEntity implements Report {
    private int id;
    private int authorId;
    private int eventId;
    private String report;
    private Date date;

    public ReportEntity(){}

    public ReportEntity(String report, int eventId, int authorId, int id, Date date) {
        this.report = report;
        this.eventId = eventId;
        this.authorId = authorId;
        this.id = id;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public int getAuthorId() {
        return authorId;
    }

    public int getEventId() {
        return eventId;
    }

    public String getReport() {
        return report;
    }

    public Date getDate() {
        return date;
    }

    @Override
    public Report setText(String text) {
        report = text;
        return this;
    }

    @Override
    public String toString() {
        return "ReportEntity{" +
                "id=" + id +
                ", authorId=" + authorId +
                ", eventId=" + eventId +
                ", report='" + report + '\'' +
                ", date=" + date +
                '}';
    }
}
